export default class Point{
    constructor(x=0,y=0){
        this.x = x;
        this.y = y;
    }
    directionTo(p){
        let tempX = p.x - this.x;
        let tempY = p.y - this.y;
        return Math.atan(tempX / tempY) / (Math.PI / 180); 
    }
}